package com.mzj.saas.mservice.property.entity;

import javax.persistence.*;
import java.util.Date;

/**
 * 支付记录
 */
@Entity
@Table(name = "saas_repairs_payment_order")
public class RepairsPaymentOrder {
    @Id
    @Basic
    @Column(name = "order_number", nullable = true)
    private String orderNumber; // 支付订单编号

    /**
     * 支付总金额
     */
    @Basic
    @Column(name = "total_amount", nullable = true)
    private Integer totalAmount;

    /**
     * 付款人id
     */
    @Basic
    @Column(name = "pay_user_id", nullable = true)
    private String payUserId;

    /**
     * 支付类型：1微信 2支付宝
     */
    @Basic
    @Column(name = "pay_type", nullable = true)
    private Integer payType;

    /**
     * 支付结果：1支付成功 2支付失败
     */
    @Basic
    @Column(name = "pay_result", nullable = true)
    private Integer payResult;

    /**
     * 支付时间
     */
    @Basic
    @Column(name = "pay_time", nullable = true)
    private Date payTime;

    /**
     * 维修id
     */
    @Basic
    @Column(name = "repairs_id", nullable = true)
    private Long repairsId;

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Integer totalAmount) {
        this.totalAmount = totalAmount;
    }

    public String getPayUserId() {
        return payUserId;
    }

    public void setPayUserId(String payUserId) {
        this.payUserId = payUserId;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public Integer getPayResult() {
        return payResult;
    }

    public void setPayResult(Integer payResult) {
        this.payResult = payResult;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Long getRepairsId() {
        return repairsId;
    }

    public void setRepairsId(Long repairsId) {
        this.repairsId = repairsId;
    }
}
